import request from '@/utils/request'

// 查询实验设备列表
export function listShebei(query) {
  return request({
    url: '/system/shebei/list',
    method: 'get',
    params: query
  })
}

// 查询实验设备详细
export function getShebei(id) {
  return request({
    url: '/system/shebei/' + id,
    method: 'get'
  })
}

// 新增实验设备
export function addShebei(data) {
  return request({
    url: '/system/shebei',
    method: 'post',
    data: data
  })
}

// 修改实验设备
export function updateShebei(data) {
  return request({
    url: '/system/shebei',
    method: 'put',
    data: data
  })
}

// 删除实验设备
export function delShebei(id) {
  return request({
    url: '/system/shebei/' + id,
    method: 'delete'
  })
}

//获取登入人信息
export function getLoginUserInfo(){
  return request({
    url: '/system/shebei/loginUserInfo',
    method: 'get'
  })
}

export function listByChange4SheBei(query) {
  return request({
    url: '/system/shebei/listByChange',
    method: 'get',
    params: query
  })
}
